//
//  FPHomeHeaderView.m
//  FinanceProject
//
//  Created by 陈显摆 on 2025/1/21.
//

#import "FPHomeHeaderView.h"

@implementation FPHomeHeaderView

- (void)awakeFromNib {
    
    [super awakeFromNib];
    
    self.backgroundColor = UIColor.clearColor;
    
    self.tipsBackView.clipsToBounds = YES;
    self.tipsBackView.layer.cornerRadius = 8.f;
    
    self.tipsBackView.backgroundColor = UIColor.clearColor;
    
    self.bottomBackView.clipsToBounds = YES;
    self.bottomBackView.layer.cornerRadius = 8.f;
    
//    UIColor *color1 = [UIColor hexColor:@"#FFEED9"];
//    UIColor *color2 = [UIColor hexColor:@"#FEE0C0"];
//    CAGradientLayer *layer = [UIColor applyGradientWithColor1:color1 color2:color2 frame:CGRectMake(0.f, 0.f, SCREEN_WIDTH - 32.f, 53.f) direction:(GradientApiDirectionLeftToRight)];
//    [self.tipsView.layer insertSublayer:layer atIndex:0];
    
//    self.tipLab1.textColor = [UIColor hexColor:@"#6B3900"];
//    self.tipLab2.textColor = [UIColor hexColor:@"#6B3900"];
//    self.tipLab3.textColor = [UIColor hexColor:@"#6B3900"];
//    self.tipLab4.textColor = [UIColor hexColor:@"#6B3900"];
    
    self.lab1.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.lab3.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.lab2.textColor = [UIColor hexColor:@"#3A3A3A"];
    
    self.rateLab.textColor = [UIColor hexColor:@"#6A6A6A"];
    
    self.titleTipLab.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.titleTipLab1.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.loanAmountLab.textColor = [UIColor hexColor:@"#3A3A3A"];
    
//    self.subLab1.textColor = [UIColor hexColor:@"#6A6A6A"];
//    self.subLab2.textColor = [UIColor hexColor:@"#6A6A6A"];
//    self.subLab3.textColor = [UIColor hexColor:@"#6A6A6A"];
    
    [self.applyBtn setTitleColor:UIColor.whiteColor forState:(UIControlStateNormal)];
    self.applyBtn.clipsToBounds = YES;
    self.applyBtn.layer.cornerRadius = 22.f;
    self.applyBtn.backgroundColor = MAIN_BLUE_COLOR;
    
    self.authTipLab1.textColor = [UIColor hexColor:@"#000000"];
    self.authTipLab2.textColor = MAIN_BLUE_COLOR;
    
    
    self.marqueeLab.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.marqueeLab.text = @"互联网贷款仅限用于个人消费，不得用于购房、债务周转、股票等领域。借款后请保留资金消费凭证，必要时众鑫花会主动联系您对您的消费用途进行核查。";
    self.marqueeLab.fadeLength = 10.f;
    self.marqueeLab.animationDelay = 3.f;
    self.marqueeLab.font = FONT(12.f);
    
    [self.marqueeLab restartLabel];
    
    self.authBackView.clipsToBounds = YES;
    self.authBackView.layer.cornerRadius = 5.f;
    
    self.notifyBackView.clipsToBounds = YES;
    self.notifyBackView.layer.cornerRadius = 10.5f;
}

@end
